package com.rayo.accesscontrollercopy.model.network.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.rayo.accesscontrollercopy.config.GlobalVariables;
import com.rayo.accesscontrollercopy.config.NetworkConfig;

import java.util.Date;

/**
 * Created by yanghaojie on 2017/2/10.
 */

public class HeartApi {
    private String lockid;
    @JSONField(format = NetworkConfig.JSON_DATE_TIME)
    private Date keyuser;
    @JSONField(format = NetworkConfig.JSON_DATE_TIME)
    private Date carduser;

    @JSONField(format = NetworkConfig.JSON_DATE_TIME)
    private Date lock;

    private String mac;
    public HeartApi() {
        lockid = String.valueOf(GlobalVariables.getInstance().getmSiteData().getLockid());
        this.keyuser = new Date();
        this.carduser = new Date();
        this.lock=new Date();
        mac=GlobalVariables.getInstance().getAndroidId();
    }

    public String getLockid() {
        return lockid;
    }

    public void setLockid(String lockid) {
        this.lockid = lockid;
    }

    public Date getKeyuser() {
        return keyuser;
    }

    public void setKeyuser(Date keyuser) {
        this.keyuser = keyuser;
    }

    public Date getCarduser() {
        return carduser;
    }

    public void setCarduser(Date carduser) {
        this.carduser = carduser;
    }

    public Date getLock() {
        return lock;
    }

    public void setLock(Date lock) {
        this.lock = lock;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }
}
